import Http from "@/common/http"
export const {$http, $msg, $api, $loading,toLogin}  = Http

export const getCollection = () => {
	$http.get("userCollection").then(res => {
		if (res&&res.length>0) {
			let arr = res.map(item=>item.questionId)
			uni.setStorageSync('collections', JSON.stringify(arr))
		}
	})
}

export * from '@/common/use'

export * from '@/common/utils'

export * from '@/common/$u'

